@import '~iview/src/styles/index.less';
@menu-dark-title: #001529;
@menu-dark-active-bg: #000c17;
@layout-sider-background: #001529;

@font-face {
  font-family: gobal-font; // fzlthk
  src: url("../src/assets/font/font5.ttf");
}
@font-face {
  font-family: 'PingFangSC-Medium';
  src: url("../src/assets/font/PingFang-Medium.otf"); //你的资源目录
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'FZZCHJW--GB1-0';
  src: url("../src/assets/font/FZZCHJW--GB1-0.ttf"); //你的资源目录
  font-weight: normal;
  font-style: normal;
}

body {
  background: rgb(240, 240, 240); //,Helvetica,,,"Microsoft YaHei","微软雅黑",Arial,sans-serif
  font-family: PingFangSC-Medium, serif;
  font-size: 12px;
  color: #464c5b;
  font-weight: 500;
}

.el-table--mini td {
  padding: 0;
}

// 处理表格最后一行显示不全问题
.el-table {
  overflow: hidden;
}

.el-table--mini th {
  padding: 5px 0;
}

.el-table__column-filter-trigger {
  line-height: 24px;
}

.padding-left-10 {
  padding-left: 10px;
}

.padding-right-10 {
  padding-right: 10px;
}

.pr-10 {
  padding-right: 10px;
}

[v-cloak] {
  display: none;
}

.el-table {
  .el-table__header {
    .caret-wrapper {
      height: 23px;

      .ascending {
        top: 1px;
      }

      .descending {
        bottom: 1px;
      }
    }

    tr th .cell {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .el-table-column--selection .cell {
      padding-right: 0;
    }
  }

  .el-table__body {
    .el-table-column--selection .cell {
      padding-right: 0;
    }
  }

  .el-table__footer {
    .footer-align-left {
      text-align: left;
    }

    .footer-align-right {
      text-align: right;
    }

    .footer-align-center {
      text-align: center;
    }
  }
}

[data-required] .ivu-input,
[data-required] .ivu-select-selection,
.ivu-checkbox-group[data-required]>.ivu-checkbox-group-item {
  background-color: rgb(255, 230, 230) !important;
}

.main {
  .ivu-card {
    font-size: 12px;
  }

  .ivu-card-head {
    padding: 8px 10px;
  }

  .ivu-card-body {
    padding: 10px;
  }

  .ivu-form-item {
    margin-bottom: 5px;
  }
}

.ivu-form-item-error-tip {
  padding-top: 0px;
  z-index: 10;
}

.sidebar-menu-con {
  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: #f5f5f5;
  }

  /*定义滚动条的轨道，内阴影及圆角*/
  &::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    border-radius: 3px;
    background-color: #f5f5f5;
  }

  /*定义滑块，内阴影及圆角*/
  &::-webkit-scrollbar-thumb {
    //width: 10px;
    height: 10px;
    border-radius: 3px;
    background-color: #555;
  }
}

.left-menu-scrollbar {
  height: 100%;
  width: auto;
  overflow-y: auto;

  &::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
  }

  /*定义滚动条的轨道，内阴影及圆角*/
  &::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgb(221, 221, 221);
    border-radius: 3px;
    background-color: #ffffff;
  }

  /*定义滑块，内阴影及圆角*/
  &::-webkit-scrollbar-thumb {
    /*width: 10px;*/
    height: 10px;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 0 6px rgb(190, 190, 190);
    background-color: #c1c1c1;
  }

  .ivu-menu-item {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 10px;
  }
}

.lh-small {
  line-height: 24px;
}

.lh-default {
  line-height: 32px;
}

.overflow-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.el-table__empty-text {
  display: block;
  width: 100px;
  height: 100px;
  padding-top: 50px;
  color: #909399;
  box-sizing: border-box;
  background-size: 100%;
}

.mt-1 {
  margin-top: 1px;
}

.mt-2 {
  margin-top: 2px;
}

.mt-5 {
  margin-top: 5px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-15 {
  margin-top: 15px;
}

.mb-2 {
  margin-bottom: 2px;
}

.mb-5 {
  margin-bottom: 5px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mr-5 {
  margin-right: 5px;
}

.mr-10 {
  margin-right: 10px;
}

.mr-20 {
  margin-right: 20px;
}

.mr-30 {
  margin-right: 30px;
}

.pt-5 {
  padding-top: 5px;
}

.pt-10 {
  padding-top: 10px;
}

.pr-0 {
  padding-right: 0 !important;
}

.pr-5 {
  padding-right: 5px;
}

.pr-8 {
  padding-right: 8px;
}

.pr-10 {
  padding-right: 10px;
}

.pl-5 {
  padding-left: 5px;
}

.pl-8 {
  padding-left: 8px;
}

.pl-10 {
  padding-left: 10px;
}

.pd-5 {
  padding: 5px;
}

.pd-10 {
  padding: 10px;
}

.pd-l-r-20 {
  padding-left: 20px;
  padding-right: 20px;
}

.ml-5 {
  margin-left: 5px;
}

.ml-10 {
  margin-left: 10px;
}

.of-y-auto {
  overflow-y: auto;
}

.of-x-hidden {
  overflow-y: hidden;
}

.of-hidden {
  overflow: hidden;
}

.vertical-center-modal {
  display: flex;
  align-items: center;
  justify-content: center;

  .ivu-modal {
    top: 0;
  }
}

.display-block {
  display: block;
}

.page-box {
  padding: 10px;
  position: relative;
  box-sizing: border-box;
}

.ivu-tabs-bar {
  margin-bottom: 0;
}

.ivu-menu-dark,
.left-sider {
  background: #4b5b7a;
}

.menu-item {
  background: #2d3f5d;

  &:hover {
    background: #2d3f5d;
  }
}

.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu-title:hover {
  background: #3d4a63;
}

.ivu-menu-dark.ivu-menu-vertical .ivu-menu-submenu .ivu-menu-item:hover {
  background: #2d3f5d !important;
}

.ivu-btn-small {
  padding: 2px 7px 2px;
}

.el-tabs__header {
  margin: 0;
}

.el-tabs__item {
  font-size: 12px;
  height: 30px;
  line-height: 30px;
}

.vertical-center-modal {
  display: flex;
  align-items: center;
  justify-content: center;

  .ivu-modal {
    top: 0;
  }
}

.ivu-form .ivu-form-item-label {
  padding: 11px 12px 10px 0;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

//滚动条的滑块
::-webkit-scrollbar-thumb {
  background-color: #a1a3a9;
  border-radius: 3px;
}


.star {
  position: relative;
}
.star::before {
  content: '*';
  color: red;
  position: absolute;
  left: -4px;
}

.requireClass {
  position: relative;
}
.requireClass::before {
  content: '*';
  position: absolute;
  color: red;
  margin-left: -5px;
  top: -3px;
}

// 去除置顶
.ivu-back-top-inner {
  display: none;
}


.flex {
  display: flex;
}
.flex-auto {
  flex: auto;
}
.flex-none {
  flex: none;
}


.white-btn {
  background: rgba(255, 255, 255, .5);
}

.primary-btn {
  background: rgb(25, 137, 250);
}
